package com.art.sunflower.service;

import com.art.sunflower.exception.NullCooperationException;
import com.art.sunflower.pojo.Cooperation;
import com.art.sunflower.util.MyPageInfo;

import java.util.List;
import java.util.Map;

public interface CooperationService {
    int insert(Cooperation cooperation);

    int update(Cooperation cooperation);

    int delete(int id);

    Cooperation selectOne(int id);

    MyPageInfo listAll(Integer pageSize, Integer pageNo) throws NullCooperationException;

    List<Map<String, Object>> listIdName();
}
